﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp4
{
    class BBRobot : Robot
    {
        private int hours;

        public int Hours
        {
            get { return this.hours; }
            set { this.hours = value; }
        }

        public BBRobot(string name, Robottype type, int hours) : base(name, type)
        {
            this.hours = hours;
        }
        public override void Working()
        {
            Console.WriteLine("你好，客人：{0}，这个机器人已经连续工作{1}小时了", this.Name, this.hours);
        }
    }


}


